package com.neusoft.databus.common.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * description
 *
 * @author sunchf
 * @date 2019年1月18日 下午1:59:06
 */
@Getter
@Setter
public class AppBean implements Serializable {
    private static final long serialVersionUID = 1L;
    private String name;
    private int zoneCounts;
    private List<InstanceInfo> instanceInfos = new ArrayList<>();

    @Getter
    @Setter
    @NoArgsConstructor
    public static class InstanceInfo implements Serializable {
        private static final long serialVersionUID = -202556198126782547L;
        private String status;
        private boolean isNotUp;
        private List<Instance> instances = new ArrayList<>();
    }

    @Getter
    @Setter
    @NoArgsConstructor
    public static class Instance implements Serializable {
        private static final long serialVersionUID = 1323040322790744692L;
        private String id;
        private String url;
        private boolean isHref;
    }

}
